package axonactive.vision.training.service;

import java.util.ArrayList;
import java.util.List;

import axonactive.vision.training.dao.QuestionDAO;
import axonactive.vision.training.entity.Question;
import axonactive.vision.training.helper.StringHelper;

public class QuestionService {
	private QuestionDAO questionDAO = new QuestionDAO();
	public List<Question> getListQuestionByExamId(int examId){
		List<Question> listQues = questionDAO.getListQuestionByExamId(examId);
		List<Question> listQuesResult = new ArrayList<Question>();
		for (Question ques : listQues) {
			listQuesResult.add(StringHelper.trim(ques));
		}
		return listQuesResult;
	}
}
